package com.coollang.smartbra.interfaces;

import android.text.Editable;
import android.text.TextWatcher;

/**
 * Created by han on 2016/10/27.
 *
 * @author han
 * @date 2016/10/27
 * @Modifier ${MODIFIER}
 * @ModifiedTime ${MODIFIEDDATE}
 * @ModifyContent${MODIFYCONTENT}
 * @since ${VERSIONNBAME}
 */

public abstract class TextChangeListener implements TextWatcher {

    public TextChangeListener (){


    }
    @Override
    public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
    }

    @Override
    public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
        onTextChange(charSequence.toString());
    }

    @Override
    public void afterTextChanged(Editable editable) {

    }

    public abstract void onTextChange(String str);
}
